
import { defineStore } from "pinia";
import { ref } from "vue";

const useDragStore = defineStore(
  "drag",
  () => {
    const dragShowData = ref<DragItemData[]>([
      {
        id: 1111,
        key: "demo-component",
        title: "组件标题",
        column: 1,
        row: 1,
        x: 1,
        y: 1,
      },
      {
        id: 2222,
        key: "demo-component",
        title: "组件标题",
        column: 1,
        row: 1,
        x: 2,
        y: 3,
      },
    ]);

    return {dragShowData};
  },
  {
    persist: true,
  }
);

export default useDragStore;
